	
<?php 
session_start(); 
?>

<html>
<head>
<script language=javascript >
function submitform()
{
	if( (document.getElementById("username").value == "" ) || (document.getElementById("password").value==""))
	{
		alert("Username or Password cannot be blank");
		return false;
	}
	
}
 
 function setStyle(x)
 {
 document.getElementById(x).style.background="orange"
 }

 function removeStyle(x)
 {
 document.getElementById(x).style.background="white"
 }


</script>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Login page</title>
</head>
<body  bgcolor="#C9C299">

<center>
            <br><br><br>
            <!--  <h1  style="color:#151B8D">WebChecklist v1.1 &beta;</h1> -->
			<img src="images/logo.gif" height="24" width="330"/>
            <H4  style="color:#151B54">Enter username and password</H4>
            <form action="processLogin.php" method="post" name="myform" >
                <table border=0 >
                    <tr>
                        <td width=100 style="color:black"> Username  : </td><td> <input name="username" size=15 type="text" id="name" onfocus="setStyle(this.id)" onblur="removeStyle(this.id)"/> </td> 
                    </tr>
                    <tr>
                        <td width=100 style="color:black"> Password  : </td><td> <input name="password" size=15 type="password" id="password" onfocus="setStyle(this.id)" onblur="removeStyle(this.id)"/> </td> 
                    </tr>
					
						
                    </table>
                <input type="submit" value="login" onclick="return submitform()" />
				<input type="reset" value="reset"/>
				</br></br>
				
				<a href="registerUser.php">Register</a>
				<a href="forgotPassword.php">Forgot Password ?</a>
				
				<?php  
				if (isset($_SESSION['authentication_error'])) 
				echo "<h3 style='color : red'>Sorry , Authentication failure</h3>";  
				?>
            </form>
           </center>
		   <div style="position:absolute;bottom:0;right:34;z-index: 1;"><a href="http://www.tcs.com" class="tip">&copy; Tata Consultancy Services Limited</a></div>

</body>
</html>